package com.scheduling;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 智能排产系统启动类
 * <p>
 * 系统架构：
 * - Spring Boot 3.2.1
 * - MyBatis-Plus 3.5.7
 * - Spring Security 6.2.1
 * - JWT 认证
 * - MySQL 8.0
 *
 * @author 开发团队
 * @since 2025-05-29
 */
@SpringBootApplication
@EnableTransactionManagement  // 启用事务管理
@EnableAsync                  // 启用异步处理
@MapperScan("com.scheduling.*.mapper")
public class ProductionSchedulingApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProductionSchedulingApplication.class, args);
        System.out.println("========================================");
        System.out.println("🚀 智能排产系统启动成功！");
        System.out.println("📚 接口文档地址: http://localhost:8080/api/swagger-ui.html");

        System.out.println("========================================");
    }
} 